package com.ld.cloud;

import com.ld.irule.IRuleConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * 使用@RibbonClient指定某个服务使用自定义的路由
 * 或者使用@RibbonClients指定多个服务配置自定义服务
 */
@SpringBootApplication
@EnableEurekaClient
//@RibbonClient(name="EUREKA-USER-PROVIDER",configuration = IRuleConfig.class)
public class CloudEurekaConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(CloudEurekaConsumerApplication.class, args);
    }

}
